import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from '../views/LoginView.vue'
import PatientView from '../views/PatientView.vue'
import  PatientConfirmView from '../views/PatientConfirmView.vue'
import  FaceView from '../views/FaceView.vue'
import  TongueView from '../views/TongueView.vue'
import  LeftHandView from '../views/LeftHandView.vue'
import  RightHandView from '../views/RightHandView.vue'
import  BingshiView from '../views/BingshiView.vue'
import  WenzhenView from '../views/WenzhenView.vue'
import  Wenzhen2View from '../views/Wenzhen2View.vue'
import  ReportView from '../views/ReportView.vue'
import  PayView from '../views/PayView.vue'
import  WebviewView from '../views/WebviewView.vue'
import  HistoryView from '../views/HistoryView.vue'
import  TongueReport from '../views/TongueReport.vue'
const router = createRouter({
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginView
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView
    },
    {
      path: '/history',
      name: 'history',
      component: HistoryView
    },
    {
      path: '/patient',
      name: 'patient',
      component: PatientView
    },
    {
      path: '/confirm-patient',
      name: 'confirm-patient',
      component: PatientConfirmView
    },
    // {
    //   path: '/face',
    //   name: 'face',
    //   component: FaceView
    // },
    {
      path: '/tongue',
      name: 'tongue',
      component: TongueView
    },
    // {
    //   path: '/left_mai',
    //   name: 'lefthand',
    //   component: LeftHandView
    // },
    // {
    //   path: '/right_mai',
    //   name: 'righthand',
    //   component: RightHandView
    // },
    // {
    //   path: '/bingshi',
    //   name: 'bingshi',
    //   component: BingshiView
    // },
    // {
    //   path: '/wenzhen_more',
    //   name: 'wenzhen',
    //   component: WenzhenView
    // },
    // {
    //   path: '/wenzhen_more_2',
    //   name: 'wenzhen2',
    //   component: Wenzhen2View
    // },
    // {
    //   path: '/report',
    //   name: 'report',
    //   component: ReportView
    // },
    // {
    //   path: '/pay',
    //   name: 'pay',
    //   component: PayView
    // },
    // {
    //   path: '/webview',
    //   name: 'webview',
    //   component: WebviewView
    // },
    {
      path: '/tongue_report',
      name: 'tongue_report',
      component: TongueReport
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue')
    }
  ]
})

export default router
